<?php
include(_DOC_ROOT.'classes/Content/Content.php');
$module = ($module)?$module:'home';
if(isset($module)) {
	$pobj = new Content();
	$page = $pobj->getContent($module);
	$page['images'] = getEntityImages($module);
	$_META_TITLE = $page['meta_title'];
	$_META_KEYWORD = $page['meta_keyword'];
	$_META_DESCRIPTION = $page['meta_description'];
	
}

array_push($jsFiles,  'slide.js');
array_push($cssFiles, 'gallery.css');
if($module == 'home') {
	$_tplName[] = 'home.tpl';
	if($query_form_active){
		array_push($_tplName,'query.tpl');
		$bodyOnLoad = ' onload="pop_query();" ';
		array_push($jsFiles,  'query.js');
		array_push($cssFiles, 'query.css');
	}
}
else{
	$_tplName = 'page.tpl';
	$brd_url[$page['title']] = _SITE_URL.$page['slug'];
	//print_r($brd_url);
}
$footer_links_tpl = 'footer_main_links.tpl';
include(_SITE_TPL_PATH_.'site_main.tpl');
?>